import menusList from "../public/data/menus.json";
import useMenusStore from "./store/modules/menus";
import { RoutesType } from "./types/meuns.type";

function usePermission() {
  const setSidebarRoutes = useMenusStore((state) => state.setSidebarRoutes);
  setSidebarRoutes(menusList as RoutesType);
}

export default usePermission;
